<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<style type="text/css">
		th{
			border: 1px;
			width: 70px;
			height:30px;
			border: 1px solid red;
		}
		.jishu{
			border: 1px;
			width: 70px;
			height:30px;
			border: 1px solid red;
			background-color: red;
		}
		.ouji{
			border: 1px;
			width: 70px;
			height:30px;
			border: 1px solid red;
			background-color: #0000FF;
		}
		.ouou{
			border: 1px;
			width: 70px;
			height:30px;
			border: 1px solid red;
			background-color: #D5DBED;
		}
	</style>
</head>
<body>
	<script type="text/javascript">
		document.write("<table>")
		for( i = 9 ; i>=1 ; i-- ){
			document.write("<tr>");
			for( k = 1 ; k <= 9 ; k++ ){
				if( k%2 != 0 ){
					document.write( "<th class='jishu'>" +  k + "*" + i + "=" + i*k + "</th>" );
				}else if( k%2 ==0 && i%2 != 0){
					document.write( "<th class='ouji'>" +  k + "*" + i + "=" + i*k + "</th>" );
				}else{
					document.write( "<th class='ouou'>" +  k + "*" + i + "=" + i*k + "</th>" );
			}	
			if( i == k){
				break;
			}
		}
		document.write("</tr>");
	}
	document.write("</table>");
	</script>
</body>
</html>